import { formatValue } from 'utils/share';
import {
  ONSTATUS
} from 'configs/constants';

export default [
  {
    title: '设备名称',
    dataIndex: 'name',
    render: (value) => formatValue(value)
  },
  {
    title: '设备编号',
    dataIndex: 'equipmentNo',
    render: (value) => formatValue(value)
  },
  {
    title: '模版名称',
    dataIndex: 'dataTemplateName',
    render: (value) => formatValue(value)
  },
  {
    title: '是否开启',
    dataIndex: 'onlineStatus',
    render: (value) => formatValue(ONSTATUS[value])
  },
  {
    title: '车牌号',
    dataIndex: 'plateNo',
    render: (value) => formatValue(value)
  },
  {
    title: '车主姓名',
    dataIndex: 'driverName',
    render: (value) => formatValue(value)
  },
  {
    title: '车主电话号码',
    dataIndex: 'driverPhone',
    render: (value) => formatValue(value)
  },
  {
    title: '设别类号代码',
    dataIndex: 'deviceType',
    render: (value) => formatValue(value)
  },
  {
    title: '排量（升）',
    dataIndex: 'displacement',
    render: (value) => formatValue(value)
  },
  {
    title: '功率（瓦特）',
    dataIndex: 'power',
    render: (value) => formatValue(value)
  },
  {
    title: '初次安装时间',
    dataIndex: 'initTime',
    render: (value) => formatValue(value)
  },
  {
    title: '初次安装里程（公里）',
    dataIndex: 'initDistance',
    render: (value) => formatValue(value)
  }
];
